package org.jeecg.modules.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.app.entity.ShopCatalog;
import org.jeecg.modules.app.mapper.ShopCatalogMapper;
import org.jeecg.modules.app.service.ShopCatalogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 李圳川
 * @version 1.0
 * @date 2022/6/15 9:37
 * @content
 */
@Service
public class ShopCatalogServiceImpl implements ShopCatalogService {

    @Autowired
    private ShopCatalogMapper shopCatalogMapper;

    @Override
    public Page<ShopCatalog> findShopCatalog(Integer pageNum, Integer pageSize) {
        QueryWrapper<ShopCatalog> queryWrapper = new QueryWrapper<>();
        Page<ShopCatalog> shopCatalogPage = shopCatalogMapper.selectPage(new Page<>(pageNum,pageSize),queryWrapper);
        return shopCatalogPage;
    }
}
